<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>订单详情</title>
  <meta name="renderer" content="webkit" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  <link rel="stylesheet" href="../../static/lib/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="../../static/css/admin.css" media="all" />
</head>

<body>
  <div id="TMM_app">
    <div class="layui-fluid">
      <div class="layui-card">
        <div class="layui-form layui-card-header tmm-admin-card-header-auto tmm-filter-form">
          <div class="layui-row">
            <div class="layui-col-md6 tmm-card-title">
              当前订单状态：<i style="color:red">
              <c:if test="${order.status==1}">待发货</c:if>
              <c:if test="${order.status==2}">已发货</c:if>
              <c:if test="${order.status==3}">已收货</c:if>
              <c:if test="${order.status==4}">已完成</c:if>
              <c:if test="${order.status==7}">申请退款</c:if>
              <c:if test="${order.status==8}">退款申请通过</c:if>
              <c:if test="${order.status==9}">已退款</c:if>
              <c:if test="${order.status==11}">已退单发货</c:if>
              <c:if test="${order.status==10}">关闭</c:if></i>
            </div>
          </div>
        </div>
        <div class="layui-card-body">
          <div class="form-title">基本信息</div>
          <table class="layui-table">
            <colgroup>
              <col width="150">
              <col width="200">
              <col>
            </colgroup>
            <thead>
              <tr>
                <th>订单编号</th>
                <th>下單时间</th>
                <th>用户姓名</th>
                <th>用户手机号</th>
                <th>收货地址</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>${order.order_sn}</td>
                <td>${order.date}</td>
                <td>${order.name}</td>
                <td>${order.phone}</td>
                <td>${order.address}</td>
              </tr>
            </tbody>
          </table>

          <div class="form-title">产品信息</div>
          <table class="layui-table">
            <colgroup>
              <col width="150">
              <col width="500">
              <col>
            </colgroup>
            <thead>
              <tr>
                <th>产品图片</th>
                <th>产品名称</th>
                <th>价格</th>
                <th>数量</th>
                <th>小计</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td><img src="${order.goods_pic}" referrerPolicy="no-referrer"/></td>
                <td>${order.goods_name}</td>
                <td>¥${order.goods_price}</td>
                <td>${order.goods_num}</td>
                <td>¥${order.order_amount}</td>
              </tr>
            </tbody>
          </table>
          <div class="form-title">快递信息</div>
          <table class="layui-table">
            <colgroup>
              <col width="150">
              <col width="500">
              <col>
            </colgroup>
            <thead>
            <tr>
              <th>快递单号</th>
              <th>发货时间</th>
              <th>快递公司</th>
            </tr>
            </thead>
            <tbody>
            <tr>
              <td>${order.l_id}</td>
              <td>${order.send_date}</td>
              <td>${order.logistics_company}</td>
            </tr>
            </tbody>
          </table>
      </div>
    </div>
  </div>
  </div>

  <script src="../../static/lib/layui/layui.js"></script>

</body>

</html>